home *** CD-ROM | disk | FTP | other *** search
/ The Original Shareware 1.1 / The Original Shareware (WeMake CDs)(Volume 1.1)(CDs, Inc)(1993).iso / 16 / columns2.zip / COLUMNS.TXT < prev   
Text File  |  1986-03-25  |  7KB  |  151 lines

  1.  
  2.  
  3. COLUMNS - Version 2.0 - Compiled March 26, 1986
  4.  
  5. by Brian Hillis, Toronto, Canada
  6.  
  7.  
  8. This program is  a  more  flexible  version  of  the  PC  News  Letter 
  9. Generator  that  appeared  in  the  March 1986 issue of Computing Now!  
  10. magazine.  
  11.  
  12.  
  13. The original code was written in BASIC by Steve Rimmer.  However, that 
  14. version was  unmercifully  slow...,  almost  to  the  point  of  being 
  15. useless,  especially for larger files.  I modified and polished up the 
  16. original code, added a few extra routines, and a nicer screen display, 
  17. then compiled it with Microsoft's Quick BASIC.  I  hope  you  find  it 
  18. useful.  
  19.  
  20.  
  21. COLUMNS  takes  your  text  files (or BASIC listings) and re-assembles 
  22. them into narrower columns,  just  like  you  see  in  newspapers  and 
  23. magazines.  The  joy  of  COLUMNS is that it figures out which line of 
  24. your text to put beside line 1,  as it is printing,  an so on down the 
  25. page.  There is no need to cut and paste.  
  26.  
  27.  
  28. COLUMNS will even deal correctly with Wordstar files, but don't try to 
  29. use  it with embedded control character,  such as are used in PC-Write 
  30. or Brown Bag.  It does, however, ignore PC-Write's "dot" commands.  If 
  31. your text editor or word processor puts "soft" carriage returns at the 
  32. end of line,  then you should be OK.  However,  it it inserts  regular 
  33. carriage returns/line feeds, such as PC-Write, then columns reads then 
  34. that  way  and you may end up with your newly assembled text finishing 
  35. in the middle of a line.  If this is the case, then you should prepare 
  36. your source file by removing all the unnecessary "returns".  
  37.  
  38.  
  39. COLUMNS is very easy to use,  and the compile version (COLUMNS.EXE) is 
  40. fairly  quick.  The BASIC version (COLUMNS.BAS) is much slower,  but I 
  41. have included it so that you can make any modifications to the code to 
  42. suit yourself.  
  43.  
  44.  
  45. To start the program, simply type:
  46.  
  47.     [basica] columns
  48.  
  49.  
  50. The first  prompt  lets  you  pick  control  codes  for  one  of  four 
  51. predefined printers.  
  52.  
  53.     1. Gemini 10, 15, etc.
  54.     2. Okidata
  55.     3. Star-IBM mode or Epson
  56.     4. Texas Instrument 855
  57.  
  58.  
  59. Needless  to  say,  these are the four printers that I use,  so I have 
  60. included them in the code.  If you just press [ENTER],  the default is 
  61. Star-IBM or Epson.  
  62.  
  63.  
  64. The next prompt lets you pick COMPRESSED (17 cpi),  ELITE (12-15 cpi), 
  65. or PICA (10 cpi).  The answer to this prompt is  used  in  conjunction 
  66. with the previous one to initialize your printer when you print a hard 
  67. copy of your newly assembled text.  The default here is COMPRESSED.  
  68.  
  69.  
  70. The  next thing COLUMNS needs to know,  is how many columns of text do 
  71. you want to print across the page.  Some experimenting with this,  and 
  72. the following prompts, may be necessary to get the correct appearance.  
  73. The default is 2 columns.  
  74.  
  75.  
  76. Next  you  will  be asked how many spaces between columns.  That's the 
  77. amount of blank space between your  columns  of  text.  Default  is  8 
  78. spaces.  
  79.  
  80.  
  81. The  next prompt asks you how many line you want printed on a page.  A 
  82. normal 11 inch page can take 66 lines of print  (at  6  lines  to  the 
  83. inch).  However,  you  will  want  a  margin  top  and bottom,  so for 
  84. generally pleasant appearance,  keep the  number  of  lines  per  page 
  85. around 55-60.  The default is 60.  
  86.  
  87.  
  88. Next  you will be asked if you want to display the assembly process on 
  89. the screen.  Watch this one about once.  It is very slow,  as  COLUMNS 
  90. displays 21 lines,  just the way they will print.  Then it scrolls its 
  91. way through the entire text file.  Really, this is a good idea because 
  92. it gives you some indication  of  problem  areas.  COLUMNS  runs  many 
  93. times  faster if it doesn't have to write to the screen.  You will get 
  94. in the habit quickly of answering NO to this  question.  To  help  you 
  95. along, NO is the default.  
  96.  
  97.  
  98. COLUMNS  will  now ask you if you want your newly assembled columns of 
  99. text printed out on your printer,  or written to disk.  If you  select 
  100. the  printer,  COLUMNS  assembles  each new page then prints it before 
  101. going on to the next page.  If you select disk,  COLUMNS writes a  new 
  102. text  file  to  disk for each page,  named PAGE-1,  PAGE-2,  etc.  The 
  103. default is DISK.  
  104.  
  105.  
  106. Next COLUMNS asks you how many HEADER and FOOTER lines you would like.  
  107. You can have up to 5 of each.  If you don't ask for any footer  lines, 
  108. COLUMNS will print a page number footer at the bottom of each page.  
  109.  
  110. Now  you  are  given  a chance to type in your HEADERS and FOOTERS.  A 
  111. ruler line will display at the  top  of  the  screen,  indicating  the 
  112. number  of  columns  across the page you can use for HEADERS.  Type in 
  113. the entire header line,  then press [ENTER].  Do this for each  header 
  114. line.  By default, COLUMNS only puts one blank line between the header 
  115. and the first text line.  So,  if you want extra blanks,  ask for more 
  116. header lines,  then make the last one or two nulls (just press [ENTER] 
  117. without typing anything) to give you extra spaces.  
  118.  
  119.  
  120. This  whole  exercise  is repeated for the FOOTERS.  If you don't want 
  121. any footer lines, or the default page number,  when your are asked for 
  122. the number of footer lines, type 1, then make it a nul.  
  123.  
  124.  
  125. When  you  type in the name of the source text file to be converted to 
  126. columns,  you can specify a drive  ,  path  and  filename,  up  to  32 
  127. characters.  
  128.  
  129.  
  130. Now  COLUMNS  goes  to  work  examining you file,  breaking it up into 
  131. columns and pages.  During the process it will keep you informed as to 
  132. the page number it is working on,  the line number on that  page,  and 
  133. the  number  of  bytes remaining to be converted.  Don't forget if you 
  134. asked for 55 lines per page and two columns,  that  will  be  110  new 
  135. lines (less the amount needed for headers and footers) to be converted 
  136. before COLUMNS writes the file to your printer or disk.  
  137.  
  138.  
  139. That's all there really is to it.  If  you  have  any  suggestions  or 
  140. comment, please let me know.  
  141.  
  142.  
  143. ---------------------------------
  144.  
  145. Brian Hillis
  146. 240 Scarlett Rd, Suite 313
  147. Toronto, Ontario   M6N 4X4
  148. Canada
  149.  
  150. (416) 769-2251
  151.